<html>
<body>
&lt;html&gt;<br>
&lt;body&gt;<br>
<span>&lt;?<br>
<pre>	if (session.get("counter") == null) {
		session.set("counter", 2);
		out.println("&lt;h1&gt;Hi "+params.get("name")+" this is your first visit&lt;/h1&gt;");
	} else {
		out.println("&lt;h1&gt;This is your "+session.get("counter")+" visit&lt;/h1&gt;");
		session.set("counter", 1+((Integer)session.get("counter")));
	}</pre>
?&gt;</span><br>
&lt;/body&gt;<br>
&lt;/html&gt;
</body>
</html>